package com.firefly.dao.dto.cms;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * @description: 系统配置
 * @author: lzg(萤火科技 ： 854378082 @ qq.com)
 * @date: 2022/12/12
 **/
@Data
@EqualsAndHashCode
public class ConfigDto implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    @Positive(message = "ID是大于0的整数")
    private Integer id;
    //站点名称
    @NotBlank(message = "名称不能为空")
    private String sitename;
    //描述
    private String description;
    //联系人
    private String person;
    //联系电话
    private String phone;
    //邮箱
    private String email;
    //地址
    private String address;
}
